package ex.com.jm.food.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Entity;

import org.hibernate.annotations.GenericGenerator;
/**
 * 广告实体层
 * @author Administrator
 *
 */
@Entity
@Table(name="jm_ads")
public class Ads implements Serializable {


	private static final long serialVersionUID = 1L;
	@Id
	@GenericGenerator(name="ad_id",strategy="uuid")
	@GeneratedValue(generator="ad_id")
	@Column(name="ad_id",nullable=false,unique=true,length=32)
	private String adId;//主键
	@Column(name="ad_name",nullable=false,length=32)
	private String adName;
	@Column(name="ad_desc",length=1000)
	private String adDesc;//描述
	@Column(name="status",nullable=false,length=2)
	private int status;//状态(0:待审核1:审核通过；2：审核未通过;3:结束)
	@Column(name="ad_image",nullable=false,unique=true,length=32)
	private String adImage;//广告图片
	@Column(name="style_id",nullable=false,length=2)
	private int styleId;//尺寸id
	@Column(name="price",length=32)
	private double price;//溢价，当于除了原本的广告尺寸的钱以外，在加上溢价，才是这个广告位的价钱
	@Column(name="com_id",nullable=false,length=32)
	private String comId;//企业id
	@Column(name="created",nullable=false,length=32)
	private String created;
	@Column(name="is_carousel",nullable=false,length=32)
	private Integer isCarousel;//广告是否轮播
	public String getAdId() {
		return adId;
	}
	public void setAdId(String adId) {
		this.adId = adId;
	}
	public String getAdDesc() {
		return adDesc;
	}
	public void setAdDesc(String adDesc) {
		this.adDesc = adDesc;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public String getAdImage() {
		return adImage;
	}
	public void setAdImage(String adImage) {
		this.adImage = adImage;
	}
	public int getStyleId() {
		return styleId;
	}
	public void setStyleId(int styleId) {
		this.styleId = styleId;
	}
	public double getPrice() {
		return price;
	}
	public void setPrice(double price) {
		this.price = price;
	}
	public String getComId() {
		return comId;
	}
	public void setComId(String comId) {
		this.comId = comId;
	}
	public String getCreated() {
		return created;
	}
	public void setCreated(String created) {
		this.created = created;
	}
	public String getAdName() {
		return adName;
	}
	public void setAdName(String adName) {
		this.adName = adName;
	}
	public Integer getIsCarousel() {
		return isCarousel;
	}
	public void setIsCarousel(Integer isCarousel) {
		this.isCarousel = isCarousel;
	}
	
}
